// timeUtil.js
function getDetailedDateTime() {
  const currentTime = new Date();

  const year = currentTime.getFullYear();
  const month = ('0' + (currentTime.getMonth() + 1)).slice(-2);
  const day = ('0' + currentTime.getDate()).slice(-2);
  const hours = ('0' + currentTime.getHours()).slice(-2);
  const minutes = ('0' + currentTime.getMinutes()).slice(-2);
  const seconds = ('0' + currentTime.getSeconds()).slice(-2);

  return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
}

module.exports={
  getDetailedDateTime
}